package com.itheima.tlias84.mapper;

import com.itheima.tlias84.dto.SelectAllClazzDTO;
import com.itheima.tlias84.dto.SelectClazzDTO;
import com.itheima.tlias84.dto.SelectClazzDetailDTO;
import com.itheima.tlias84.po.InsertClazzParam;
import com.itheima.tlias84.po.SelectClazzPageParam;
import com.itheima.tlias84.po.UpdateClazzParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface ClazzMapper {
    //分页查询
    List<SelectClazzDTO> selectClazzByPage(@Param("p")SelectClazzPageParam param);
    //修改班级信息
    int updateClazz(@Param("p")UpdateClazzParam param);
    //根据id查询
    SelectClazzDetailDTO selectClazzById(@Param("id")Integer id);
    //根据id删除
    int deleteClazzById(@Param("id")Integer id);
    //新增班级
    int insertClazz(@Param("p")InsertClazzParam param);
    //查询所有班级
    List<SelectAllClazzDTO> selectAllClazz();

}
